const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
    port:8090, 
    // 如果出现404 可能你的8080端口被占用了，
                  // port换端口
    proxy: {
      '/api': {
        target: 'http://124.221.98.163:8080',
        chageOrigin: true,
        pathRewrite: { '^/api': '' },//路径改写
      },
    }
  }
});
